-- GENERATED SPELL FOR [Baron Charr] --


function spell0_14461(pUnit, Event) --@Fireball Volley,n/a--
pUnit:FullCastSpellOnTarget(15285,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14461', 566, 1)
end

function spell1_14461(pUnit, Event) --@Flame Buffet,n/a--
pUnit:FullCastSpellOnTarget(9574,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14461', 47200, 1)
end

function Sorts_14461(pUnit, Event)
local choix_sorts_14461 = math.random(0, 1)
if choix_sorts_14461 == 0 then
pUnit:RegisterEvent('spell0_14461', 1, 1)
end
if choix_sorts_14461 == 1 then
pUnit:RegisterEvent('spell1_14461', 1, 1)
end
end

function mob14461_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14461', math.random(1500, 3000), 1)
end

function mob14461_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14461_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14461_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14461, 1, 'mob14461_Action')
RegisterUnitEvent(14461, 2, 'mob14461_Leave')
RegisterUnitEvent(14461, 3, 'mob14461_Kill')
RegisterUnitEvent(14461, 4, 'mob14461_Die')
